package com.tool.tcp;

import java.awt.*;

public interface NewPart2 {
    /**是否点击*/
    public boolean contains(int x,int y);
    /**清空指针*/
    public void recycle();
    /**获取素材总时间*/
    public int getTime();
    /**加载素材*/
    public void loadTcp();
    /**获取动作*/
    public int getAct();
    /**切换动作*/
    public void setAct(int Act);
    /**添加图层*/
    public NewPart2 addPart(NewPart2 newPart);
    /**移除*/
    public NewPart2 removePart(String rSkin);
    /**获取等级*/
    public int getLvl();
    /**获取下一部件*/
    public NewPart2 getPart();
    /**修改 下一部件*/
    public void setPart(NewPart2 part);
    /**重置图层*/
    public NewPart2 setPart(int lvl, String skin);
    public NewPart2 setPart(int lvl, long skin, HHOne[] ones);
    /**获取偏移Y*/
    public int getPy();
    /**复制Y*/
    public NewPart2 clonePart();
    /**获取总方向数*/
    public int getAnimationCount();
    public void draw(Graphics g, int x, int y, int dir, long time);

    void draw(Graphics g, int x, int y, int dir, long time, int addy);

    public void draw(Graphics g, int x, int y, int dir, long time, float alpha);
    public void drawEnd(Graphics g, int x, int y, int dir, float alpha);
    public void drawBattle(Graphics g, int x, int y, int dir, long time,float alpha);
    public void setFly(String skin,int act);
    public void drawFly(Graphics g, int x, int y, int dir, long time, float alpha);

}
